#!/bin/bash
#!/bin/bash
# description:　Rsync war file
# version:	1.0
# author:	xiuju_lan
# contact:	xiuju_lan@sumilux.cn
#

. functions.sh

GENERIC_SRC=smx@${DL_SERVER}:/opt/www/ops30.sumilux.com
echo "--> Begin to download firefox-46.0.1.tar.bz2"
if [ ! -e /tmp/vagrant-cache/wget/firefox/firefox-46.0.1.tar.bz2 ]; then
rsync ${RSYNC_OPTS} -e "${RSH_OPTS}" ${GENERIC_SRC}/firefox /tmp/vagrant-cache/wget/
fi


#wget -P /usr/local/ http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/46.0.1/linux-x86_64/en-US/
echo "--> unzip firefox-46.0.1.tar.bz2 to /usr/local/firefox"
tar xjf /tmp/vagrant-cache/wget/firefox/firefox-46.0.1.tar.bz2 -C /usr/local
sudo ln -sf /usr/local/firefox/firefox /usr/bin/firefox